import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
  plugins: [vue()],
  server: {
    host: 'localhost',
    port: 8080,
    https: false,
    proxy: {
      '/hzit': {
        target: 'http://localhost:8089',
        secure: false,
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/hzit/, '')
      }
    }
  },
  transpileDependencies: true,
  lintOnSave: false
})

